﻿/*----------------------------------------------------------------
// Copyright (C) 2016 通通优品版权所有。
// 命名空间: STOWaybillMall.Orders.Controllers
// 类名：UserOrdersController
// 功能描述：N/A
// 
// 创建标识：Roc.Lee(李鹏鹏) 2017/8/8 17:21:33 TEC-ROCLEE Roc.Lee

// 修改标识：
// 修改描述：
// 
//
//----------------------------------------------------------------*/

using STOWaybillMall.Orders.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;
using TongTongMall.MallWeb.WebApi.Controllers;

namespace STOWaybillMall.Orders.Controllers
{
    /// <summary>
    /// 用户订单
    /// </summary>
    /// <remarks>用户订单相关</remarks>
    [RoutePrefix("api/user-orders")]
    public class UserOrdersController : MallWebApiControllerBase
    {
        /// <summary>
        /// 用户订单数量
        /// </summary>
        /// <remarks>包括各种订单状态的数量</remarks>
        /// <returns></returns>
        [Route("order-count")]
        public GetUserOrderCountOutput GetUserOrderCount()
        {
            CheckModelState();
            return new GetUserOrderCountOutput();
        }

        /// <summary>
        /// 用户订单详情
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [Route("order-detail")]
        public GetUserOrderDetailOutput GetUserOrderDetail([FromUri]GetUserOrderDetailInput input)
        {
            CheckModelState();
            return new GetUserOrderDetailOutput();
        }
        /// <summary>
        /// 用户订单列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [Route("order-list")]
        public GetUserOrderListOutput GetUserOrderList([FromUri]GetUserOrderListInput input)
        {
            CheckModelState();
            return new GetUserOrderListOutput();
        }
    }
}
